package com.nacos.consumer.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.nacos.consumer.client.UserClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName:
 * @author:
 * @Description:
 * @Date
 **/
@RestController
public class UserController {

    @Autowired
    UserClient userClient;

    @GetMapping("/user/addUser")
    public String add(){
       return userClient.add();
    }

    @GetMapping("/user/findUser")
    public String findUser(){
        return userClient.findUserById();
    }

    @GetMapping("/user/findAllUser")
    public String findAllUser(){
        return userClient.findAllUser();
    }
}
